package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author liuy
 * @since 2021-04-07
 */
@Data
@TableName("bty_zx_bx_mingxi")
public class ZxBxMingxi implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bty_zx_chengben_mingxi_id", type = IdType.ID_WORKER)
    private Long btyZxChengbenMingxiId;

    /**
     * 成本id
     */
    @TableField("bty_zx_chengben_id")
    private Long btyZxChengbenId;

    /**
     * 门店id
     */
    @TableField("bty_zx_mdzx_id")
    private Long btyZxMdzxId;

    /**
     * 科目id
     */
    @TableField("bty_zx_kemu_id")
    private Long btyZxKemuId;

    /**
     * 金额
     */
    @TableField("jine")
    private BigDecimal jine;

    /**
     * 备注
     */
    @TableField("beizhu")
    private String beizhu;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 状态显示
     */
    @TableField("status_view")
    private String statusView;

    @TableField("del_flag")
    private Integer delFlag;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField("create_user_name")
    private String createUserName;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @TableField("update_user_name")
    private String updateUserName;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField("company")
    private String company;

    @TableField("company_view")
    private String companyView;

    @TableField("src_type")
    private String srcType;

    @TableField("src_value")
    private String srcValue;

    @TableField("qtkm")
    private String qtkm;

    @TableField("gongshi")
    private String gongshi;

    /**
     * 数量
     */
    @TableField("shuliang")
    private BigDecimal shuliang;

    /**
     * 店价
     */
    @TableField("unit_price")
    private BigDecimal unitPrice;
    /**
     * 厂家
     */
    @TableField("btyy_bxda_id")
    private String btyyBxdaId;

    /**
     * 厂家名称
     */
    @TableField("btyy_bxda_id_view")
    private String btyyBxdaIdView;

    @TableField("keyword_id")
    private Integer keywordId;

    @TableField("huopin_id")
    private String huopinId;
    @TableField(exist = false)
    private BigDecimal zongjia;

    @TableField("shje")
    private String shje;

    /**
     * 原门店装修id
     */
    @TableField("old_mdzx_id")
    private Long oldMdzxId;
}
